package com.zzptc.syl.traffic;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class AccountActivity2 extends AppCompatActivity {

    Button btacc;
    Button btvr;
    Button btzj;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_account2);
        initview();
        event();
    }

    private void initview() {
        btacc=findViewById(R.id.bt_acc);
        btvr=findViewById(R.id.bt_vr);
        btzj=findViewById(R.id.bt_zj);
    }

    private void event() {
        btvr.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(AccountActivity2.this,Violation.class);
                startActivity(intent);
            }
        });
        btacc.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(AccountActivity2.this,Account.class);
                startActivity(intent);
            }
        });
        btzj.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(AccountActivity2.this,Administration.class);
                startActivity(intent);
            }
        });

    }
}